﻿# Linux平台相关定义，包括源码，CXX FLAG，LINK FLAG和第三方库
message("Platform Linux Libs Path: " ${NS_LIBS_ROOT})
message("Project Linux Libs Path: " ${PROJECT_LIBS_ROOT})

# 平台相关代码声明
#set(PROJECT_PLATFORM_CUSTOM_SOURCE
#${DIR_SRC}/Platform/linux/develop_custom_code.cpp
#)

# 声明平台编译需要的编译选项
#set(PROJECT_PLATFORM_CUSTOM_CXX_FLAGS 
#"-Wno-inconsistent-missing-override"
#)

# 声明平台编译需要的链接选项
#set(PROJECT_PLATFORM_CUSTOM_LINK_FLAGS
#"-rdynamic"
#)

# 平台相关的头文件引用，如平台无关在ProjectCompileCustom指定
#include_directories(CUSTOM_INCLUDE_PLATFORM_RELATED_DIR)

# Followings are sample of add custom 3rd libs
# 声明参与编译的动态链接库
#add_library(libCUSTOM_LIB SHARED IMPORTED)
#set_target_properties(libCUSTOM_LIB PROPERTIES IMPORTED_LOCATION ${PROJECT_LIBS_ROOT}/libCUSTOM_LIB.so)

# 声明参与编译的静态链接库
#add_library(libCUSTOM_STATIC_LIB STATIC IMPORTED)
#set_target_properties(libCUSTOM_STATIC_LIB PROPERTIES IMPORTED_LOCATION ${PROJECT_LIBS_ROOT}/libCUSTOM_STATIC_LIB.a)

# Following is the sample of add custom 3rd libs
# 将库加入链接列表
#list(APPEND PLATFORM_LINK_LIBS
#libCUSTOM_LIB
#libCUSTOM_STATIC_LIB
#)
